Classname DebugTools
Contains some helpfull functions for debugging your scripts.
Note: this class will be used by the implementation classes AND the backend of the feindura-CMS.
static number | $scriptBenchmarkTime | DebugTools::scriptBenchmark() variables |
static mixed | $scriptBenchmarkPoint |
static string | scriptBenchmark() | Shows th time the scipt need between this call and the last call of this function. And shows the memory usage at the |
static string | dump() | Simply lists arrays or echo an string inside a box, to see the content of a variable. It will add a |
void | __construct() | Constructor does nothing, this class is just a collection of debugging methods |
bool | $shouldReturn |
if TRUE it will return the values, if FALSE it will print them. Default false |
Name scriptBenchmark()
Shows th time the scipt need between this call and the last call of this function. And shows the memory usage at the point of the script where this public static function is called.
mixed | $values |
all kinds of variables, which should be displayed |
bool | $shouldReturn |
(optional) whether or not the content should be displayed or returned. Default false |
Name dump()
Simply lists arrays or echo an string inside a box, to see the content of a variable. It will add a <br> after each value so it can be better read.
Type constructor
Constructor does nothing, this class is just a collection of debugging methods